using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class UpdateStatOpLog : GeneratedMessageLite<UpdateStatOpLog, UpdateStatOpLog.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<UpdateStatOpLog, UpdateStatOpLog.Builder>
		{
			private bool resultIsReadOnly;
			private UpdateStatOpLog result;
			protected override UpdateStatOpLog.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override UpdateStatOpLog MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override UpdateStatOpLog DefaultInstanceForType
			{
				get
				{
					return UpdateStatOpLog.DefaultInstance;
				}
			}
			public uint OpCode
			{
				get
				{
					return this.result.OpCode;
				}
				set
				{
					this.SetOpCode(value);
				}
			}
			public Builder()
			{
				this.result = UpdateStatOpLog.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(UpdateStatOpLog cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private UpdateStatOpLog PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					UpdateStatOpLog other = this.result;
					this.result = new UpdateStatOpLog();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override UpdateStatOpLog.Builder Clear()
			{
				this.result = UpdateStatOpLog.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override UpdateStatOpLog.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new UpdateStatOpLog.Builder(this.result);
				}
				return new UpdateStatOpLog.Builder().MergeFrom(this.result);
			}
			public override UpdateStatOpLog BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override UpdateStatOpLog.Builder MergeFrom(IMessageLite other)
			{
				if (other is UpdateStatOpLog)
				{
					return this.MergeFrom((UpdateStatOpLog)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override UpdateStatOpLog.Builder MergeFrom(UpdateStatOpLog other)
			{
				return this;
			}
			public override UpdateStatOpLog.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override UpdateStatOpLog.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(UpdateStatOpLog._updateStatOpLogFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = UpdateStatOpLog._updateStatOpLogFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 8u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasOpCode = input.ReadUInt32(ref this.result.opCode_);
					}
				}
				return this;
			}
			public UpdateStatOpLog.Builder SetOpCode(uint value)
			{
				this.PrepareBuilder();
				this.result.hasOpCode = true;
				this.result.opCode_ = value;
				return this;
			}
			public UpdateStatOpLog.Builder ClearOpCode()
			{
				this.PrepareBuilder();
				this.result.hasOpCode = false;
				this.result.opCode_ = 0u;
				return this;
			}
		}
		public const int OpCodeFieldNumber = 1;
		private static readonly UpdateStatOpLog defaultInstance;
		private static readonly string[] _updateStatOpLogFieldNames;
		private static readonly uint[] _updateStatOpLogFieldTags;
		private bool hasOpCode;
		private uint opCode_;
		private int memoizedSerializedSize = -1;
		public static UpdateStatOpLog DefaultInstance
		{
			get
			{
				return UpdateStatOpLog.defaultInstance;
			}
		}
		public override UpdateStatOpLog DefaultInstanceForType
		{
			get
			{
				return UpdateStatOpLog.DefaultInstance;
			}
		}
		protected override UpdateStatOpLog ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint OpCode
		{
			get
			{
				return this.opCode_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasOpCode;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasOpCode)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.OpCode);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private UpdateStatOpLog()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] updateStatOpLogFieldNames = UpdateStatOpLog._updateStatOpLogFieldNames;
			if (this.hasOpCode)
			{
				output.WriteUInt32(1, updateStatOpLogFieldNames[0], this.OpCode);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasOpCode)
			{
				num ^= this.opCode_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			UpdateStatOpLog updateStatOpLog = object_0 as UpdateStatOpLog;
			return updateStatOpLog != null && (this.hasOpCode == updateStatOpLog.hasOpCode && (!this.hasOpCode || this.opCode_.Equals(updateStatOpLog.opCode_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<UpdateStatOpLog, UpdateStatOpLog.Builder>.PrintField("OpCode", this.hasOpCode, this.opCode_, writer);
		}
		public static UpdateStatOpLog ParseFrom(byte[] data)
		{
			return UpdateStatOpLog.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private UpdateStatOpLog MakeReadOnly()
		{
			return this;
		}
		public static UpdateStatOpLog.Builder CreateBuilder()
		{
			return new UpdateStatOpLog.Builder();
		}
		public override UpdateStatOpLog.Builder ToBuilder()
		{
			return UpdateStatOpLog.CreateBuilder(this);
		}
		public override UpdateStatOpLog.Builder CreateBuilderForType()
		{
			return new UpdateStatOpLog.Builder();
		}
		public static UpdateStatOpLog.Builder CreateBuilder(UpdateStatOpLog prototype)
		{
			return new UpdateStatOpLog.Builder(prototype);
		}
		static UpdateStatOpLog()
		{
			UpdateStatOpLog.defaultInstance = new UpdateStatOpLog().MakeReadOnly();
			UpdateStatOpLog._updateStatOpLogFieldNames = new string[]
			{
				"OpCode"
			};
			UpdateStatOpLog._updateStatOpLogFieldTags = new uint[]
			{
				8u
			};
			object.ReferenceEquals(micromsg.Proto.UpdateStatOpLog.Descriptor, null);
		}
	}
}
